package com.TripMate.system.mapper;


import com.TripMate.system.model.dto.favorites.FavoritesQueryRequest;
import com.TripMate.system.model.entity.Favorites;
import com.TripMate.system.model.vo.FavoritesByPostVO;
import com.TripMate.system.model.vo.FavoritesByTripVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
* @author dongmianyan
* @description 针对表【favorites(收藏表)】的数据库操作Mapper
* @createDate 2024-11-29 18:11:05
* @Entity generator.domain.Favorites
*/
public interface FavoritesMapper extends BaseMapper<Favorites> {


    List<FavoritesByTripVO> getQueryByTrip(Page<FavoritesByTripVO> pageParam, FavoritesQueryRequest favoritesQueryRequest, Long userId);

    List<FavoritesByPostVO> getQueryByPost(Page<FavoritesByPostVO> pageParam, FavoritesQueryRequest favoritesQueryRequest, Long userId);

    List<FavoritesByPostVO> getQueryByPostAll(Page<FavoritesByPostVO> pageParam, FavoritesQueryRequest favoritesQueryRequest);

    List<FavoritesByTripVO> getQueryByTripAll(Page<FavoritesByTripVO> pageParam, FavoritesQueryRequest favoritesQueryRequest);
}




